class UrlMappings {

	static mappings = {
		"/$controller/$action?/$id?"{
			constraints {
				// apply constraints here
			}
		}

		"/"(view:"/index")
		"500"(view:'/error')
		
		// REST
		"/pais/$id"(controller: "pais", parseRequest: true) {
			action = [GET: "wsshow", PUT: "wsupdate", DELETE: "wsdelete", POST: "wssave"]
		}
	}
}
